<!DOCTYPE html>
<html>

<head>
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta http-equiv="x-ua-compatible" content="IE=edge, chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="关键词" />
    <meta name="description" content="页面简介" />
    <link rel="icon" href="favicon.ico" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="csaa/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="./csaa/fonts/iconfont/iconfont.css">
    <link rel="stylesheet" href="./csaa/fonts/materialicons/material-icons.css">

    <script language="javascript" type="text/javascript" src="csaa/js/jquery.min.js"></script>
    <script language="javascript" type="text/javascript" src="csaa/js/site.js"></script>
    <script src="csaa/js/httpPath.js"></script>
    <script src="csaa/js/httpUtils.js"></script>
    <title>全国青少年航空科学素质等级考试</title>
</head>

<body>
    <!-- 头部 开始 -->
    <div class="header">

    </div>
    <!-- 头部 结束 -->


    <!-- 内页banner 开始 -->
    <div class="in_banner">
        <div class="in_banner_box" style="background-image: url(./demo/img/banner01.jpg)
	"></div>
        <div class="text">管理办法</div>
    </div>
    <!-- 内页banner 开始 -->

    <!-- 主体 开始 -->
    <div id="about_main" class="document_center">
        <div class="main">
            <div class="about_content">
                <div class="list_level">


                </div>
                <!-- <a href="javascript:history.go(-1)" class="btn" style="font-size: 14px; text-align: center; width: 100%; display: inline-block;">返回>></a> -->
            </div>
            <div class="latest_news">
                <div class="latest_title"><i class="material-icons">&#xe05e;</i><span class="text">最新动态</span></div>
                <div class="list_latest">

                </div>
                <div class="manage_btnwrap">
                    <a class="btn btn_color_1" href="./news.html">查看更多</a>
                </div>
            </div>




        </div>
        <!-- footer 开始-->
        <div class="footer_wrap">
        </div>

        <!------------------------------------ 主体分割 -------------------------------->

    </div>
    <!-- 主体 结束 -->
    <div id="tmp_item_docum" style="display: none">
        <a class="item card" href="" style="display: block">
            <div class="item_wrap">
                <div class="levelimg">
                    <div class="text">--</div><i class="icon material-icons"></i></div>
                <div class="title">
                    <div class="title_text"></div>
                </div>
                <div class="subtitle">
                    <div class="subtext"></div>
                </div>
            </div>
        </a>
    </div>


    <script>
        fun_islogin(true); //页面头部登录

        getQueryString(name);
        var get_type = getQueryString("role");
        var get_tType = getQueryString("level");

        var tmp_parms = {
            pageSize: 10000,
            pageNum: 1,
            role: get_type,
            level: get_tType
        }

        $.ajax({
            type: "POST",
            url: GET_WOED_LIST,
            dataType: "json",
            data: tmp_parms,
            timeout: 20000,
            success: function(data, textStatus) {
                if (data.status == 1) {
                    var $tmp_html = $("<div/>");
                    var fetch_data = data.data;

                    if (fetch_data.length == 0) {
                        $(".list_level").html("<div class=\"nothing\">暂无信息</div>");
                        return false;
                    }
                    for (var i = 0; i < fetch_data.length; i++) {
                        var $tmp_item = $("#tmp_item_docum .item").clone();

                        $tmp_item.attr('href', './document_info.html?id=' + fetch_data[i].id);

                        if (fetch_data[i].role == 0) {
                            $tmp_item.find(".levelimg .text").text('L' + fetch_data[i].level + '级');
                        }

                        if (fetch_data[i].role == 1 || fetch_data[i].role == 2) {
                            if (fetch_data[i].level == 0) {
                                $tmp_item.find(".levelimg .text").text('初级');
                            }
                            if (fetch_data[i].level == 1) {
                                $tmp_item.find(".levelimg .text").text('中级');
                            }
                            if (fetch_data[i].level == 2) {
                                $tmp_item.find(".levelimg .text").text('高级');
                            }
                            if (fetch_data[i].level == 3) {
                                $tmp_item.find(".levelimg .text").text('特级');
                            }
                        }

                        if (fetch_data[i].role == 3) {
                            $tmp_item.find(".levelimg .text").text('考点');
                        }

                        //$tmp_item.find(".title .title_text").text(fetch_data[i].title);
                        $tmp_item.find(".title .title_text").text("管理办法");

                        if (fetch_data[i].subtitle) {
                            $tmp_item.find(".subtitle .subtext").text(fetch_data[i].subtitle);
                        }


                        $tmp_html.append($tmp_item);

                    }
                    $tmp_html.find(".item").appendTo(".list_level");

                } else {
                    $.fn.winktips(data.msg);
                }

            },
            error: function(XMLHttpRequest, textStatus, errorThrown) {
                $.fn.winktips("连接超时，请检查您的网络");
            }
        })


        fun_news(); //载入最新动态
    </script>


</body>

</html>
